export const baseConfig = {
	pageName: '数据字典',
	dictcodes: ['DICT_TYPE'],
	rowKey: 'id',
	addLabel: '新增字典',
	tipLabel: 'dictName',
	exportMqTopic: '/ning/export/',
	api: {
		index: 'sys_dict_page',
		add: 'sys_dict_add',
		edit: 'sys_dict_edit',
		delete: 'sys_dict_del',
		export: 'sys_dict_export',
	},
	auth: {
		index: 'sys_dict_page',
		add: 'sys_dict_add',
		edit: 'sys_dict_edit',
		delete: 'sys_dict_del',
		mulitSet: 'mulitSet',
		export: 'sys_dict_export',
	},
	dialogConfig: {
		width: '85%',
		closeOnClickModal: false,
	},
	menuBtn: [
		{
			icon: 'editor',
			label: '编辑',
			type: 'primary',
			operate: 'edit',
			auth: 'sys_dict_edit',
			text: true,
			show: true,
		},
		{
			icon: 'delete',
			label: '删除',
			type: 'danger',
			operate: 'delete',
			auth: 'sys_dict_del',
			text: true,
			show: true,
		},
	],
	searchConfig: {
		inline: true,
		showBtn: true,
		labelPosition: 'left',
		column: [
			{
				label: '字典标识',
				prop: 'identifying',
				type: 'input',
				span: 6,
			},
			{
				label: '字典名称',
				prop: 'dictName',
				type: 'input',
				span: 6,
			},
			{
				label: '字典类型',
				prop: 'system',
				type: 'select',
				dicData: [
					{
						label: '业务类',
						value: 0,
					},
					{
						label: '系统类',
						value: 2,
					},
				],
				span: 6,
			},
			{
				label: '字典描述',
				prop: 'description',
				type: 'input',
				span: 6,
			},
		],
	},
	tableConfig: {
		stripe: true,
		border: true,
		maxHeight: '80vh',
		columns: [
			{ label: '字典名称', prop: 'dictName',align:'left',minWidth:200 },
			{ label: '字典项数量', prop: 'dictItemNum' },
			{ label: '字典标识', prop: 'identifying' },
			{
				label: '字典类型',
				prop: 'system',
				custome: 'tag',
				dicData: [
					{
						label: '业务类',
						value: 0,
						type: 'success',
					},
					{
						label: '系统类',
						value: 2,
					},
				],
			},
			{ label: '创建人', prop: 'creator' },
			{ label: '创建时间', prop: 'createTime' },
			{
				label: '操作',
				prop: 'menu',
				width: 280,
				fixed: 'right',
			},
		],
	},
}
